package com.aaa.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(MyRedisProperties.PREFIX)
@Data
public class MyRedisProperties {

    public static  final String  PREFIX = "spring.redis";

    private  Integer  database;
    private  String  host;
    private  Integer  port;
    private  String  password;
    private  Integer  maxTotal;
    private  Integer  maxWaitMillis;
    private  Integer  maxIdle;
    private  Integer  minIdle;
    private  Integer  timeout;
}
